From fb6a98fbd682bd074198d080da894f64399f9018 Mon Sep 17 00:00:00 2001 From: z1mvader Date: Tue, 7 Feb 2017 17:55:46 -0500 Subject: [PATCH] trying to fix unimplemented flock under linux --- src/cargo/util/flock.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/cargo/util/flock.rs b/src/cargo/util/flock.rs index a20540d06..64151bff5 100644 --- a/src/cargo/util/flock.rs +++ b/src/cargo/util/flock.rs @@ -276,6 +276,9 @@ fn acquire(config: &Config, #[cfg(target_os = "macos")] Err(ref e) if e.raw_os_error() == Some(libc::ENOTSUP) => return Ok(()), + #[cfg(target_os = "linux")] + Err(ref e) if e.raw_os_error() == Some(libc::ENOSYS) => return Ok(()), + Err(e) => { if e.raw_os_error() != lock_contended_error().raw_os_error() { return Err(human(e)).chain_error(|| { -- 2.30.2